The keybinding to toggle the screen recorder was implemented as a
signal on MetaScreen, as keybindings could only be defined in mutter
core. As this is no longer the case, we can move the binding into the
shell where it belongs.
https://bugzilla.gnome.org/show_bug.cgi?id=674377
Keybinding to open the application menu.
</_description>
</key>
+ <key name="toggle-recording" type="as">
+ <default><![CDATA[['<Control><Shift><Alt>r']]]></default>
+ <_summary>Keybinding to toggle the screen recorder</_summary>
+ <_description>
+ Keybinding to start/stop the builtin screen recorder.
+ </_description>
+ </key>
</schema>
<schema id="org.gnome.shell.keyboard" path="/org/gnome/shell/keyboard/"
function _initRecorder() {
let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' });
+ let bindingSettings = new Gio.Settings({ schema: 'org.gnome.shell.keybindings' });
- global.screen.connect('toggle-recording', function() {
+ global.display.add_keybinding('toggle-recording',
+ bindingSettings,
+ Meta.KeyBindingFlags.NONE, function() {
if (recorder == null) {
recorder = new Shell.Recorder({ stage: global.stage });
}